﻿<views:View x:Class="Chronos.Client.Win.Views.Common.EventsTree.EventsTreeView"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:controls="clr-namespace:Chronos.Client.Win.Controls.Common.EventsTree"
            xmlns:views="clr-namespace:Chronos.Client.Win.Views;assembly=Chronos.Client.Win"
            xmlns:theme="clr-namespace:Chronos.Client.Win.Themes;assembly=Chronos.Client.Win">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid Background="{x:Static theme:FontsAndColors.DarkNeutralBrush}">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Column="1" Text="Sort:" />
            <ComboBox Grid.Column="2" ItemsSource="{Binding AvailableSortTypes}" SelectedItem="{Binding SelectedSortType}" Width="100" />
            <TextBlock Grid.Column="3" Text="Merge:" />
            <ComboBox Grid.Column="4" ItemsSource="{Binding AvailableMergeTypes}" SelectedItem="{Binding SelectedMergeType}" Width="100" />
        </Grid>
        <Border Grid.Row="1" BorderBrush="{x:Static theme:FontsAndColors.DarkNeutralBrush}" BorderThickness="1">
            <controls:EventsTreeView Events="{Binding Events}" EventMessageBuilder="{Binding EventMessageBuilder}" EventsSortType="{Binding SelectedSortType, Mode=OneWay}"/>
        </Border>
    </Grid>
</views:View>